 

package com.zdkj.subway.stm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zdkj.subway.stm.dto.in.CommomConfirmInfoDTO;
import com.zdkj.subway.stm.dto.in.SwStConductorSettleDto;
import com.zdkj.subway.stm.entity.SwStConductorSettle;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 售票员结算表（主表）
 *
 * @author chenbo
 * @date 2020-02-01 19:24:00
 */
public interface SwStConductorSettleService extends IService<SwStConductorSettle> {

    Boolean saveOrUpdateSettleAndDetail(SwStConductorSettleDto swStConductorSettleDto);

    Boolean removeCascadeById(Integer id);

    SwStConductorSettleDto getCascadeById(Integer id);

    boolean updateSettleDetail(SwStConductorSettleDto swStConductorSettleDto);
    /**
     * 合并数据
     */
    boolean mergeSellData(List<Integer> ids,String conductorShifts, Boolean isFlag);

    SwStConductorSettleDto queryNeedToConfirmData(CommomConfirmInfoDTO confirmInfoDTO);

    boolean confirmData(Integer id);

    boolean confirmAllData(CommomConfirmInfoDTO confirmInfoDTO);

    boolean saveMarketingTicket(CommomConfirmInfoDTO confirmInfoDTO);

    void export(SwStConductorSettle dto, HttpServletResponse response);
}
